function submit_limit(selected_limit){
	document.location = "modify_or_delete_user.php?limit="+selected_limit;
}
function step_limit(selected_step){
	document.location = "modify_or_delete_user.php?step="+selected_step;
}

function select_group(selected_group){
	document.location = "modify_or_delete_user.php?group="+selected_group;
}
function select_faculty(selected_f){
	document.location = "modify_or_delete_user.php?faculty="+selected_f;
}
function search_user(){
	var keyword = document.getElementById("search").value;
	document.location = "modify_or_delete_user.php?search="+keyword;
}		
function checkAll()
{
	var inputs = document.getElementsByTagName('input');
	var checkboxes = [];
	for (var i = 0; i < inputs.length; i++) {
		if (inputs[i].type == 'checkbox' && document.getElementById("all_check").checked == true) {
		inputs[i].checked =true;
		}
		if (inputs[i].type == 'checkbox' && document.getElementById("all_check").checked == false) {
		inputs[i].checked =false;
		}
	}
}
function confirmAction() {
	return confirm("Are you sure you want to permanently delete this user(s)?")
}